﻿using Microsoft.Xna.Framework;

namespace SAM3D
{
    public abstract class TransformableDrawableGameComponent : DrawableGameComponent, ITransformable
    {
        private Transform _transform;
        protected TransformableDrawableGameComponent(Game game, Transform transform) : base(game)
        {
            _transform = transform;
        }

        public Transform Transform
        {
            get { return _transform; }
        }
    }

    public abstract class TransformableGameComponent : GameComponent, ITransformable
    {
        private Transform _transform;
        protected TransformableGameComponent(Game game, Transform transform) : base(game)
        {
            _transform = transform;
        }

        public Transform Transform
        {
            get { return _transform; }
        }
    }
}